package com.ruoyi.manage.service.impl;

import java.util.List;

import com.ruoyi.manage.service.BmInordergoodslistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.manage.mapper.BmInordergoodslistMapper;
import com.ruoyi.manage.domain.BmInordergoodslist;
import com.ruoyi.manage.service.BmInordergoodslistService;

/**
 * 订单信息Service业务层处理
 *
 * @author ruoyi
 * @date 2022-11-12
 */
@Service
public class BmInordergoodslistServiceImpl implements BmInordergoodslistService
{
    @Autowired
    private BmInordergoodslistMapper bmInordergoodslistMapper;

    /**
     * 查询订单信息
     *
     * @param id 订单信息主键
     * @return 订单信息
     */
    @Override
    public BmInordergoodslist selectBmInordergoodslistById(Long id)
    {
        return bmInordergoodslistMapper.selectBmInordergoodslistById(id);
    }

    /**
     * 查询订单信息列表
     *
     * @param bmInordergoodslist 订单信息
     * @return 订单信息
     */
    @Override
    public List<BmInordergoodslist> selectBmInordergoodslistList(BmInordergoodslist bmInordergoodslist)
    {
        return bmInordergoodslistMapper.selectBmInordergoodslistList(bmInordergoodslist);
    }

    /**
     * 新增订单信息
     *
     * @param bmInordergoodslist 订单信息
     * @return 结果
     */
    @Override
    public int insertBmInordergoodslist(BmInordergoodslist bmInordergoodslist)
    {
        return bmInordergoodslistMapper.insertBmInordergoodslist(bmInordergoodslist);
    }

    /**
     * 修改订单信息
     *
     * @param bmInordergoodslist 订单信息
     * @return 结果
     */
    @Override
    public int updateBmInordergoodslist(BmInordergoodslist bmInordergoodslist)
    {
        return bmInordergoodslistMapper.updateBmInordergoodslist(bmInordergoodslist);
    }

    /**
     * 批量删除订单信息
     *
     * @param ids 需要删除的订单信息主键
     * @return 结果
     */
    @Override
    public int deleteBmInordergoodslistByIds(Long[] ids)
    {
        return bmInordergoodslistMapper.deleteBmInordergoodslistByIds(ids);
    }

    /**
     * 删除订单信息信息
     *
     * @param id 订单信息主键
     * @return 结果
     */
    @Override
    public int deleteBmInordergoodslistById(Long id)
    {
        return bmInordergoodslistMapper.deleteBmInordergoodslistById(id);
    }
}

